Documentation for class rectangle

Inherits from 	ornament 

Properties declared in rectangle 
	fill_color 
	frame 

Class Methods declared in rectangle 
	new(x, y, width, height) 

Methods declared in rectangle 
	any 
		fill_color 
		frame 
		resize(width , height) 
		resize_by(dw , dh) 
		set_fill_color(color) 
		shape(x , y , width , height) 
		shape_by(dx , dy , dw , dh) 
	get 
		fill_color 
		frame 
	set 
		set_fill_color(color) 

Class 
#begin_class
rectangle 
The class rectangle is a subclass of the class ornament. 
A rectangle is defined by its frame. 
A rectangle has a fill-color.
#end_class

Properties 

#begin_property
fill_color 
Stores the color object for the rectangle's fill-color.
#end_property

#begin_property
frame 
Stores the frame of the rectangle in the coordinate system of the slide the rectangle is located in.
#end_property

Methods 

#begin_method
fill_color 
Returns the fill_color property of the rectangle.
#end_method

#begin_method
frame 
Returns the frame property of the rectangle.
#end_method

#begin_method
resize(width , height) 
Sets the width and the height of the rectangle's frame to width and height.
Returns self.
#end_method

#begin_method
resize_by(dw , dh) 
Sets the width and the height of the rectangle's frame to the current width + dw and the current height + dh.
Returns self.
#end_method

#begin_method
set_fill_color(color) 
Sets the fill_color property to color.
Returns self.
Ex:
This example creates a new rectangle and sets its fill-color to green:
r := {rectangle}:new(0, 0, 30, 30)
c := {color}:new
c:set_rgba(0, 1, 0, 1)
r:set_fill_color(c)
#end_method

#begin_method
shape(x , y , width , height) 
Sets the frame of the rectangle.
Returns self.
#end_method

#begin_method
shape_by(dx , dy , dw , dh) 
Changes the frame of the rectangle. 
The x coordinate will be set to the current value + dx.
The y coordinate will be set to the current value + dy.
The width will be set to the current value + dw.
The height coordinate will be set to the current value + dh.
Returns self.
#end_method

Class Methods 

#begin_class_method
new(x, y, width, height) 
Returns a new rectangle object.
Ex:
{rectangle}:new(50, 60, 30, 40)
will create a new rectangle with the origin in (50, 60) and with a width of 30 and a height of 40.
#end_class_method